﻿//using System;
//using System.Net;
//using System.Windows;
//using System.Windows.Controls;
//using System.Windows.Documents;
//using System.Windows.Ink;
//using System.Windows.Input;
//using System.Windows.Media;
//using System.Windows.Media.Animation;
//using System.Windows.Shapes;

//namespace Wwtfly.CHY
//{
   

//public class Attendance2Service {
//    // 打卡地址
//    public  static final String AdressMyAttendanceShow =Client.AdressMyAttendanceShow;
//    // 打卡地址
//    public static final String AdressMyAttendancePost = Client.AdressMyAttendancePost;

//    private static final Logger log4j = Logger
//            .getLogger(Attendance2Service.class);

//    /**
//     * 签退
//     * */
//    public OperateResult MyAttendanceCheckOut() {

//        OperateResult or = new OperateResult();
//        or.ResultCode = "100";
//        DefaultHttpClient httpclient = (DefaultHttpClient) HttpConnectionManager
//                .getHttpClient();
//        try {
//            HttpGet httpget = new HttpGet(AdressMyAttendanceShow);
//            HttpResponse response = httpclient.execute(httpget);
//            HttpEntity entity = response.getEntity();
//            {
//                BufferedReader red = new BufferedReader(new InputStreamReader(
//                        entity.getContent(), Charset.forName("utf-8")));
//                String line = null;
//                StringBuffer sb = new StringBuffer();
//                while ((line = red.readLine()) != null) {
//                    sb.append(line);
//                }
				
//                Gson gson = new Gson();
//                or = gson.fromJson(sb.toString(), OperateResult.class);
//            }
//            return or;
//        } catch (Exception e) {
//            log4j.error("签退时出现错误", e);
//            Log.e("myError", "签退时出现错误", e);
//            or.ResultCode = "-99";
//            or.ResultHtml = "系统异常:" + e.getMessage();
//        } finally {
//            // When HttpClient instance is no longer needed,
//            // shut down the connection manager to ensure
//            // immediate deallocation of all system resources
//            httpclient.getConnectionManager().shutdown();
//        }
//        return or;

//    }
//}

//}
